"""
@author: lc
@file: 卢陈.py
@time: 2024/5/29 17:36
"""
lst= list(range(1,31))
index=0
while len(lst)>20:
    index2=1
    while index2<9:
        if index2==8:
            result=lst.pop(index)
            print(f"删除了{result}")
            break
        index2 += 1
        index=(index+1)%len(lst)
    if index2 <8 :
        index=0

print(lst)

